package VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_LV1_01;

import java.util.Scanner;

public class Views {
	


	public static void main(String[] args) {
 
		Account objAccount;
		objAccount=new Account("","");
	
		
		Models objModel;
		objModel=new Models();
		
		Controller objControler=new Controller(objAccount, objModel);
		
		Scanner scn=new Scanner(System.in);
		System.out.println("Nhap User Name");
		objAccount.setUserName(scn.nextLine());

		
		System.out.println("Nhap PassWord");
		objAccount.setPassWord(scn.nextLine());
		
		

		//Kiem tra Khong dang nhap
		
		if(objControler.KiemTraKhongDagNhap())
		{
			System.out.println("Ban Chua Nhap Tai Khoan");
		}
		else 	
			//kiem tra thong tin
		{
				if(objControler.KiemTraThongTinNguoiDung())
				{
				System.out.println("Dang Nhap thanh cong");
				
			}
			else
			{
				System.out.println("Dang nhap khong thanh cong. Vui long kiem tra lai");
		}
		}
	}
}
		
	
		
		

	
	

			
		
		
		
		
		
		
		
	



